package org.zhigong.dao;

import org.apache.ibatis.annotations.Param;
import org.zhigong.entity.RoleMenu;

import java.util.List;

/**
 * Created by Administrator on 2018/5/9 0009.
 */
public interface RoleMenuDao {

    /**
     * 批量新增角色菜单数据.
     * @param list
     * @return
     */
    int insertRoleMenu(List<RoleMenu> list);

    /**
     * 根据role_id删除role和menu的关联数据
     * @param id
     * @return
     */
    int deleteByRoleId(@Param("id") Long id);
}
